package com.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * JWT 响应的数据传输对象 (DTO)
 */
@ApiModel(description = "JWT响应体")
public class JwtResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "JWT令牌")
    private final String token;
    @ApiModelProperty(value = "用户类型")
    private final String userType;

    public JwtResponse(String token, String userType) {
        this.token = token;
        this.userType = userType;
    }

    public String getToken() {
        return this.token;
    }

    public String getUserType() {
        return userType;
    }
}